import request from '@/utils/request.js'
const PATH = '/user/new'

// 获取资讯列表
export const getInfoList = (params) =>
  request.get(PATH + '/pageQuery', { params })

// 增加访问量
export const addVisit = ({ id }) => request.put(PATH + `/addVisit/${id}`)

// 获取资讯详情
export const getInfoDetail = (params) =>
  request.get(PATH + '/getNewsById', { params })
